package PBO5;
interface satu
{
	public double luas2();
}
abstract class konstruktor implements siji
{
	public double r;
	public konstruktor()
	{
		this.r=1;
	}
	public double luas1()
	{
		return 3.14*r*r;
	} 
}
class polimorfisme extends enkapsulasi 
{
	protected double r;
	public polimorfisme(double a)
	{
		super(a);
		this.r=a;
	}
	private double luas ()
	{		
		return 3.14*r*r;
	}
	public double getluas()
	{
		return luas();
	}
	private double luas(double r)
	{
		double l;
		return l=3.14*r*r;
	}
}
/*class enkapsulasi extends konstruktor 
{
	private double r;
	public enkapsulasi (double a)
	{
		super();
		this.r=a;
	}
	private double luaslingkaran (double r)
	{
		double l;
		return l=3.14*r*r;
	}
	public double getluas()
	{
		return luaslingkaran(r);
	}
}*/
/*class pewarisan extends polimorfisme
{
	public pewarisan(double a)
	{
		super(a);
	}
	public double getjari2()
	{
		return r;
	}
	public double volum()
	{
		return 4.0/3*r*super.getluas();
	}
	public double luas()
	{
		return getluas();
	}
}*/

//#############################################//
//#############################################//
//edy//